<?php
namespace app\admin\controller;
use think\Controller;
class Index extends Controller
{
    public function index()
    {
        $session = request()->session('uid');
        if(empty($session)){
            $this->redirect('admin/login/index');
        }else{
            $this->redirect('admin/main/index');
        }
    }

}